package ilearn.seata.job.java8.buss.client;

import ilearn.seata.job.java8.buss.client.entity.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient("order-server")
public interface OrderServiceClilent {

    @GetMapping("/add")
    Order add(@RequestParam String goods, @RequestParam String accId, @RequestParam String name , @RequestParam BigDecimal amt);
}
